package com.ruoyi.web.controller.sine;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.entity.PsnInfo;
import com.ruoyi.system.service.IPsnInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * psnController
 *
 * @author HanQuinn
 * Date: 2023/7/20
 * Time: 10:39
 */

@RestController
@RequestMapping("/psn")
public class PsnController {

    @Autowired
    private IPsnInfoService psnInfoService;

    @GetMapping("/get")
    @Anonymous
    public String query() {
        PsnInfo psnInfo = psnInfoService.query(new PsnInfo());
        return JSONObject.toJSONString(psnInfo);
    }
}
